<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="/commons/taglibs.jsp" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

<head>
	<%@ include file="/commons/css_js_head.jsp" %>
	<title>机构树</title>
		<script type="text/javascript" src="${ctx}/dtree/dtree.js"></script>
		<link rel="stylesheet" href="${ctx}/dtree/dtree.css" type="text/css"></link>
		
	</head>


<body>
		<div class="dtree">
	
	<br/>
	<img alt="全部打开" src="${ctx}/images/bant1.gif" onclick="d.openAll();"  />
	<img alt="全部折叠" src="${ctx}/images/bant2.gif" onclick="d.closeAll();" />
	<br/><br/>
	
	<script type="text/javascript">
		d = new dTree('d');
		d.add(1,-1,"机构")
		                 
		<c:forEach var="item" items="${voList}">
		d.add(${item.orgId},${item.parentId},"${item.orgName}","${ctx }/permission/efOrgAction!doFindById.ts?orgId=${item.orgId}")
		d.config.target="main";
		</c:forEach>
		document.write(d);

	</script>
</div>

</body>
</html>